// sw.js - 
const CACHE_NAME = 'taskflix-v1'
const ASSETS = [
  '/',
  '/index.html',
  '/static/logo.png',
  // 
]

self.addEventListener('install', (event) => {
  event.waitUntil(caches.open(CACHE_NAME).then((cache) => cache.addAll(ASSETS)))
})

self.addEventListener('fetch', (event) => {
  event.respondWith(caches.match(event.request).then((response) => response || fetch(event.request)))
})
